package com.tianji.learning.mapper;

import com.tianji.learning.domain.po.InteractionReply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 互动问题的回答或评论 Mapper 接口
 * </p>
 *
 * @author 东哥
 * @since 2025-10-25
 */
public interface InteractionReplyMapper extends BaseMapper<InteractionReply> {

    /**
     * 无隐藏的回答总数
     * @param id 回答id
     */
    Integer DontHiddenAnswerTimes(@Param("id") Long id);

    List<Map<Long, Integer>> countReplyTimes();
}
